#-------------------------------------------------
#
# Project created by QtCreator 2013-04-24T03:50:49
#
#-------------------------------------------------


QT       += network
QT       += core
QT       += gui


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets


TARGET = engineznews
TEMPLATE = lib
CONFIG += create_prl link_prl staticlib

SOURCES += \
    newspaper/newspapermanager.cpp \
    openingupdate/openingupdateappresponse.cpp \
    openingupdate/openingupdateapprequest.cpp \
    parameterscreen/dpiscreen.cpp \
    newspaper/article.cpp \
    updatearticlecontent/updatearticlecontentrequest.cpp \
    updatearticlecontent/updatearticlecontentresponse.cpp \  
    imagedownload/iconmanager.cpp \
    newspaper/categorydetail.cpp \
    newspaper/sourcedetail.cpp \
    updatearticlelist/updatemorearticlelistrequest.cpp \
    updatearticlelist/updatemorearticlelistresponse.cpp \
    updatearticlelist/updatearticlelistfirstrequest.cpp \
    updatearticlelist/updatearticlelistfirstresponse.cpp \
    updatearticlelist/updatenewarticlelistrequest.cpp \
    updatearticlelist/updatenewarticlelistresponse.cpp \
    content/articlecontent.cpp

HEADERS += \
    newspaper/newspapermanager.h \
    openingupdate/openingupdateapprequest.h \
    openingupdate/openingupdateappresponse.h \
    parameterscreen/dpiscreen.h \
    newspaper/article.h \
    updatearticlecontent/updatearticlecontentrequest.h \
    updatearticlecontent/updatearticlecontentresponse.h \    
    imagedownload/iconmanager.h \
    newspaper/categorydetail.h \
    newspaper/sourcedetail.h \
    updatearticlelist/updatemorearticlelistrequest.h \
    updatearticlelist/updatemorearticlelistresponse.h \
    updatearticlelist/updatearticlelistfirstrequest.h \
    updatearticlelist/updatearticlelistfirstresponse.h \
    updatearticlelist/updatenewarticlelistrequest.h \
    updatearticlelist/updatenewarticlelistresponse.h \
    content/articlecontent.h


unix:!symbian { \
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
}


INCLUDEPATH += $$PWD/../enginebase
DEPENDPATH += $$PWD/../enginebase

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../enginebase/release/ -lenginebase
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../enginebase/debug/ -lenginebase
else:unix: LIBS += -L$$OUT_PWD/../enginebase/ -lenginebase

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../enginebase/release/enginebase.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../enginebase/debug/enginebase.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../enginebase/libenginebase.a

INCLUDEPATH += $$PWD/../3rdparty/json
DEPENDPATH += $$PWD/../3rdparty/json

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/release/ -ljson
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/debug/ -ljson
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/json/ -ljson

INCLUDEPATH += $$PWD/../3rdparty/tufao
DEPENDPATH += $$PWD/../3rdparty/tufao

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/tufao/release/ -ltufao
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/tufao/debug/ -ltufao
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/tufao/ -ltufao

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/release/tufao.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/debug/tufao.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/libtufao.a






